﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Shifa
{
    class Teacher
    {
        private string name;
        private List<Question> questions;

        public Teacher(string name)
        {
            this.name = name;
            this.questions = new List<Question>();
        }

        public string Name
        {
            get { return this.name; }
        }

        public List<Question> Questions
        {
            get { return this.questions; }
            set { this.questions = value; }
        }

        public int GetRatingCount()
        {
        	int max = int.MinValue;
            foreach (Question question in this.questions)
            {
                if (question.Ratings.Count > max)
                {
                    max = question.Ratings.Count;
                }
            }

            return max;
        }
        
        public override string ToString()
        {
            return this.name;
        }
    }
}
